import sqlitehelper
import sqlite3

cx = sqlite3.connect('/Users/Rdxer/Documents/pytestsqlite.db')

cu = cx.cursor()

cu.execute('create table IF NOT EXISTS catalog (id integer primary key,pid integer,name TEXT)')

try:
    res = cu.execute("insert into catalog values(0, 0, 'name1')")
    print(res)
except Exception as err:
    print("插入失败...")

cx.commit()
